/**
 * Author: jinchao
 * Copyright: Hundsun
 */
(function($) {
	$.fn.showTab = function(tabContainerId,tabHeaderIndex){
		var container = $("#"+tabContainerId);	
		var tabHeaders = $("a[data-name='tab']",container);
		tabHeaders.each(function(){
			var __this = $(this);
			var _index = __this.attr("data-index"); 
			if(_index == tabHeaderIndex){
				__this.addClass('tab_focus');	
				$("#tabDiv_"+_index,container).show();
			}else{
				__this.removeClass('tab_focus');	
				$("#tabDiv_"+_index,container).css({"display":"none"});	
			}
			 
		});	 
	};
})(jq.ui);

 
	